<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>添加删除数组元素方法</title>
    <script>
        // 添加/删除数组元素方法
        let arr = ['red', 'green', 'blue'];
        
        console.log(arr.push('yellow'));
    </script>
</head>
<body>
    
</body>
</html>